import { mapState } from 'vuex';
const computed = {
  ...mapState({
    // AddDialog.vue
    mainServiceTypeOptions: state => state.schedule.mainServiceTypeOptions,
    subServiceTypeOptions: state => state.schedule.subServiceTypeOptions,
    // Schedule.vue
    schedules: state => state.schedule.schedules,
    dates: state => state.schedule.dates,
    // EditDialog.vue
    duty: state => state.schedule.editTarget,
    // 分页组件
    pageSize: state => state.schedule.pageSize,
    total: state => state.schedule.total,
    // SearchPanel.vue
    departments: state => state.schedule.departments
  })
};

export default computed;
